import bge as _b
_t=_b.types
_l=_b.logic

def getScene():
    scn=_l.getCurrentScene()
    assert isinstance(scn, _t.KX_Scene)
    return scn
def listScenes():
    return _l.getSceneList()

def getCont():
    cont=_b.logic.getCurrentController
    assert isinstance(cont,_t.SCA_PythonController)
    return cont

def getObject():
    cont=getCont()
    assert isinstance(cont,_t.SCA_PythonController)
    obj=cont.owner
    assert isinstance(obj,_t.KX_GameObject)
    return obj